package com.dcbeida.activity;

import android.app.ProgressDialog;
import android.content.Intent;
import android.content.res.AssetFileDescriptor;
import android.graphics.Bitmap;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Handler;
import android.text.TextUtils;
import android.util.Log;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.Toast;

import com.dcbeida.R;
import com.dcbeida.activity.inventory.InventoryActivity;
import com.dcbeida.bean.ResultModel;
import com.dcbeida.listern.OnKeyListener;
import com.dcbeida.utils.GetApi;
import com.dcbeida.utils.Utils;
import com.dcbeida.zxing.camera.CameraManager;
import com.dcbeida.zxing.decoding.CaptureActivityHandler;
import com.dcbeida.zxing.decoding.InactivityTimer;
import com.dcbeida.zxing.view.ViewfinderView;
import com.google.zxing.BarcodeFormat;
import com.google.zxing.Result;

import java.io.IOException;
import java.util.Vector;

import butterknife.Bind;
import butterknife.OnClick;


/**
 * 条码、二维码 扫描
 */
public class GzhActivity extends BaseActivity {


    @Bind(R.id.img_back)
    ImageView imgBack;
    @Bind(R.id.tv_title)
    TextView tvTitle;
    @Override
    protected int getLayoutResId() {
        return R.layout.activity_gzh;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initData();

    }

    private void initData(){
        tvTitle.setText("公众号-二维码");
    }

    @OnClick(R.id.img_back)
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.img_back:
                finish();
                break;
        }
    }
}
